import App from './App'
//导入 封装的 提示
import '@/utils/index.js'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
	...App,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import { createUnistorage } from './uni_modules/pinia-plugin-unistorage'
export function createApp() {
	const app = createSSRApp(App)

	//实例化 Pinia
	const pinia = createPinia()
	app.use(pinia)
	//Pinia持久化
	pinia.use(createUnistorage())
	return {
		app,
	}
}
// #endif